package org.jeecg.modules.compilation.mapper;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.jeecg.modules.compilation.entity.CiDoc;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * @Description: ci_doc
 * @Author: jeecg-boot
 * @Date:   2024-03-15
 * @Version: V1.0
 */
public interface CiDocMapper extends BaseMapper<CiDoc> {

    @Select("select * from ci_doc where business_category_sn = #{businessCategorySn}")
    List<CiDoc> List(@Param("businessCategorySn") String businessCategorySn);

    @Select("select * from ci_doc where document_sn = #{documentSn}")
    CiDoc getDoc(@Param("documentSn") String documentSn);

}
